<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script src="./vue.min-2.6.11.js"></script>
    <div id="app">
        <input type="button" value="按钮" title="mytitle">
        <input type="button" value="按钮绑定title值" v-bind:title='mytitle'>
        <input type="button" v-bind:value='msg' v-bind:title='mytitle'>
        <input type="button" :value = 'msg' :title='mytitle'>
        <br>
        <p>-------------------事件绑定:------------------</p>
        <input type="button" value="戳我" :title='mytitle' id="clickBtn">
        <input type="button" value="vue戳我" :title='mytitle' @click='alert("点击了 vue 戳我")'>
        <input type="button" value="vue1 戳我" :title='mytitle' v-on:mouseover='alert("mouseover vue1 戳我")'>
        <input type="button" value="点击我就show你看" @click='show'>
        <input type="button" value="点击我就show你看111" @click='show'>
    </div>
    <script>
        const vm = new Vue({
            el:'#app',
            data:{
                mytitle:'这是一个小按钮',
                msg:'这是 按钮的值'
            },
            methods:{
                show:function(){
                    alert('点击了 按钮 就 show 一下')
                }
            }
        })
        document.querySelector('#clickBtn').onclick = function () {
            alert('点击了 按钮')
        }
    </script>
</body>

</html>